package com.zeei.gis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultRowsVO;
import com.zeei.gis.service.StdPollCodeGisService;
import com.zeei.gis.vo.StdPollCodeGisVO;

/**
 * @类型名称：StdPollCodeGisController
 * @类型描述：字典-污染物检测项目代码管理
 * @功能描述：字典-污染物检测项目代码管理
 * @创建人：jiangqingpeng
 */
@Controller
@RequestMapping("/gis/stdpoll")
public class StdPollCodeGisController extends BasicController{
	
	@Autowired
	StdPollCodeGisService stdPollCodeGisService;

	@RequestMapping(value="/list", method=RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "查询污染物信息", type = LogType.View)
	public ResultRowsVO<StdPollCodeGisVO> queryPolluteName(){
		List<StdPollCodeGisVO> listStd = stdPollCodeGisService.queryPolluteName();
		return this.createResultRowsVO(listStd, true, "", listStd.size());
	}
}
